/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconLogoApple: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M550.016 255.36a164.32 164.32 0 0 0 144.864-163.168V64h-28.16a164.352 164.352 0 0 0-164.352 164.288v28.224h28.192c6.528 0 13.024-0.384 19.456-1.152z m1.984-48.48a116.672 116.672 0 0 1 93.248-93.248 116.672 116.672 0 0 1-93.248 93.248z m300.832 161.824a176.576 176.576 0 0 0-24.96 17.44c-29.728 24.384-75.2 74.56-74.496 152.96 1.472 135.904 121.824 181.056 123.328 181.536a227.872 227.872 0 0 1-3.136 9.6 491.456 491.456 0 0 1-60.512 118.048c-38.304 54.88-78.08 109.248-140.768 110.208-30.24 0.704-50.464-7.808-71.456-16.64-21.824-9.216-44.48-18.784-80.224-18.784-37.952 0-61.824 9.92-84.8 19.52-19.808 8.256-38.944 16.224-65.888 17.376-60.672 1.92-106.432-59.232-145.216-113.6-79.072-111.68-139.264-314.56-58.176-451.936 40.288-68.48 111.904-111.68 189.984-112.64 33.6-0.8 66.304 11.84 94.912 22.912 21.696 8.416 41.088 15.936 56.768 15.936 13.76 0 31.712-6.88 52.96-15.04 34.016-13.056 76.448-29.312 123.584-25.728 22.72 1.504 78.304 7.072 127.616 45.856 14.336 11.264 28.16 25.376 40.48 42.976z m-172.48-31.136c-25.728-1.984-51.456 4.736-79.456 14.88-4.224 1.536-10.4 3.872-16.896 6.368-8.96 3.392-18.56 7.072-24.8 9.28-12.704 4.416-31.488 10.4-51.008 10.4-18.624 0-36.128-4.96-48.96-9.216-9.664-3.2-20.448-7.392-29.984-11.104a1639.04 1639.04 0 0 0-8.896-3.424c-25.792-9.824-45.248-15.52-62.432-15.104h-0.704c-56.832 0.704-110.336 32.288-140.864 84.16-31.04 52.576-37.216 122.048-23.872 195.936 13.28 73.472 44.736 144.16 79.36 193.088 19.776 27.712 37.632 51.648 56.32 68.768 18.336 16.768 30.752 20.736 39.68 20.544 16.192-0.736 26.56-5.024 47.584-13.76l3.072-1.28c24.288-10.016 55.68-21.888 102.112-21.888 47.072 0 78.4 13.056 101.504 22.784 21.312 8.992 31.552 13.056 48.832 12.672h0.448c12.928-0.224 25.6-5.376 41.44-19.84 17.056-15.52 33.12-37.504 52.8-65.632l0.064-0.128c17.12-24.384 29.952-48.704 39.008-68.544a274.208 274.208 0 0 1-29.088-23.52c-39.36-36.608-79.136-96.128-80.096-183.296v-0.128c-0.64-74.528 30.848-129.664 61.888-165.344 3.072-3.52 6.176-6.912 9.248-10.112-32.608-21.376-67.52-25.344-85.76-26.56h-0.544z"
        fill={getIconColor(color, 0, '#000000')}
        fillOpacity=".9"
      />
    </svg>
  );
};

IconLogoApple.defaultProps = {
  size: 18,
};

export default IconLogoApple;
